﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml.Wordprocessing;
using DocumentFormat.OpenXml.Packaging;
using intelliEssay.Core.DocumentStructure;
using intelliEssay.Interop;

namespace intelliEssay.Core
{

    /// <summary>
    /// This class represents settings
    /// </summary>
    public class TaskSettings
    {
        /// <summary>
        /// 生成这份文档的程序
        /// <remarks>
        /// 默认是Microsoft Office 2010</remarks>
        /// </summary>
        public readonly HostApplications hostApp = HostApplications.MsOffice2010;
        /// <summary>
        /// 检查的错误容许闸值
        /// <remarks>
        /// This must be set, or the threshold value would be 0.</remarks>
        /// </summary>
        public readonly double threshold = 0;
        /// <summary>
        /// 纸张有效宽度，即除去纸张左右边距
        /// </summary>
        public readonly double paperWidth = 210 - 63.6;
        /// <summary>
        /// 标准论文元素出现的顺序
        /// </summary>
        public DocumentStructure.DocumentKeyElementSequence standardDocumentKeyElementSequence = new DocumentStructure.DocumentKeyElementSequence();
        /// <summary>
        /// 标准论文格式的WordProcessingDocument
        /// </summary>
        public WordprocessingDocument standardDocument;
        /// <summary>
        /// 标准论文格式的路径
        /// </summary>
        public string StandardFormatDocumentPath = "..\\standardFormat.docx";

    }
}
